package leetcodecompetition.D357;

import java.util.List;

/**
 * @Author: Siantar
 * @Date: 2023-08-06-11:21
 * @Description: 1.0
 */
public class T6953 {
    public boolean canSplitArray(List<Integer> nums, int m) {
        int len = nums.size();
        if (len <= 2) return true;
        for (int i = 0; i < len - 1; i++) {
            if (nums.get(i) + nums.get(i + 1) >= m) {
                return true;
            }
        }
        return false;
    }
}
